import org.junit.Test;

/**
 * @author ：zhouhangyong
 * @date ：Created in 2022/6/21 19:35
 * @description：
 * @modified By：
 * @version:
 */
public class text {
    public int reverseInteger(int number) {
        // write your code here
        int ret = 0, sign = number > 0 ? 1 : -1;
        while (number > 0) {
            ret *= 10;
            ret += number % 10;
            number /= 10;
        }
        return ret * sign;
    }
    @Test
    public void mainTest(){
        System.out.println(reverseInteger(25614));
    }
}
